/*********** BASE DU SITE ***********/
body {
    background: rgb(44, 62, 80);
    font-family: "Oswald", serif;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/******** HEADER ********/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-30px);
    animation: apparition 0.4s 0.7s ease-out forwards;
    transition: 0.6s;
}

@keyframes apparition {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Logo + titre */
header img {
    height: 40px;
    margin: 10px;
    padding: 5px;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-30px);
    animation: apparition 0.6s 0.5s ease-out forwards;
    transition: 0.6s;
}

header img:hover {
    background-color: rgba(255, 255, 255, 0.67);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
}


/*********** ACCUEIL ***********/
.acceuil_image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

.acceuil_image img {
    width: 70em;
}

/* Écran portable (ex : < 1024px) */
@media (min-width: 1900px) {
    .acceuil_image img {
        width: 90em;
    }
}



/*********** BOUTONS ***********/
.buton,
.bouton-don {
    color: black;
    background-color: white;
    font-weight: 700;
    margin: 30px;
    text-transform: uppercase;
    padding: 12px 16px;
    border: 2px solid #000;
    border-radius: 4px;
    box-shadow: 4px 4px hsl(0, 0%, 0%);
    transition: all 0.3s;
}

.buton:hover,
.bouton-don:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px hsl(0, 0%, 0%);
}

.buton:active,
.bouton-don:active {
    transform: translate(0);
    box-shadow: 4px 4px hsl(0, 0%, 0%);
}

.button {
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.button:hover {
    color: rgb(131, 143, 255);
}

/*********** TEXTES ***********/
.tp {
    font-size: 1.1rem;
}

.tm {
    font-size: 2.3rem;
}

.tg {
    font-size: 3rem;
}

/*********** BLOCS PRINCIPAUX ***********/
.block_moi,
.block_projets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 120px;
    color: #fff;
    gap: 60px;

}

.text_me {
    margin-left: 20px;
}

.text_me,
.text_projets {
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 7px;
    padding: 25px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 500px;
    box-sizing: border-box;
}

.text_me h1,
.text_projets h1 {
    color: #fff;
    text-shadow: 2px 2px #000;
    margin-bottom: 10px;
}

.text_me p,
.text_projets p {
    font-size: 1rem;
    font-weight: 400;
}

.block_moi img,
.block_projets img {
    width: 100%;
    max-width: 500px;
}

/*********** SKILLS ***********/
.skills {
    background: #202d3a;
    color: #ffffff91;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 0;
}

.comp {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}



/*********** SERVICES ***********/
.block_service {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 60px 30px 100px 30px;
    flex-direction: row;
    align-items: center;
    overflow: hidden;

}

.service {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rafinart,
.urweb,
.comics {
    width: 250px;
    height: 500px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.44);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.49);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.4s;
}

.rafinart:hover {
    background: url("lokzeo%202/rafinart.png") no-repeat center / cover;
    color: transparent;
    width: 500px;
}

.urweb:hover {
    background: url("lokzeo%202/hey.png") no-repeat center / cover;
    color: transparent;
    width: 500px;

}

.comics:hover {
    background: url("lokzeo%202/affiche.png") no-repeat center / cover;
    color: transparent;
    width: 500px;
}

/*********** DONATION ***********/
.donation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    margin: 40px;
}

.donation img {
    width: 500px;
}

.don_text {
    background-color: rgba(0, 0, 0, 0.53);
    border-radius: 7px;
    padding: 20px;
    max-width: 300px;
    margin: 30px;
}

/* Le conteneur principal (la fenêtre visible) */
.carousel {
    position: relative;
    max-width: 65%;
    height: max-content;
    margin: auto;
    overflow: hidden;
    /* Cache ce qui dépasse */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
    margin-bottom: 120px;
}

/* La bande interne qui va glisser */
.carousel-inner {
    display: flex;
    /* Aligne les images horizontalement */
    transition: transform 0.5s ease-in-out;
    /* Animation fluide */
    width: 100%;
}

/* Chaque élément du carrousel */
.carousel-item {
    min-width: 100%;
    /* Chaque image prend 100% de la fenêtre */

}

.carousel-item img {
    width: 100%;
    height: 100%;
    /* L’image prend toute la hauteur du conteneur */
    object-fit: cover;
    /* Remplit la div sans déformation */
    display: block;
}

/* Style des boutons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.311);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 100px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.495);
}


/*******marquee*******/
.gradient {
    margin: 200px 0 200px 0;
    position: relative;
    overflow: hidden;
    /* important */
}

.gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    /* pour ne pas bloquer le scroll */
    background: linear-gradient(to right,
            rgb(44, 62, 80) 10%,
            transparent 30%,
            transparent 70%,
            rgb(44, 62, 80) 90%);
    z-index: 10;
    /* le gradient passe devant les cartes */
}


.marquee {
    width: 100%;
    display: flex;
    overflow-x: auto;
    position: relative;
    z-index: 1;

}

.marquee::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-self: center;
    animation: spin 20s infinite linear;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    padding: 0px;
    margin-left: 6em;
    background-color: rgba(255, 255, 255, 0.204);
    border-radius: 50%;
    font-size: 3rem;
    text-align: center;
    align-items: center;
}

@keyframes spin {
    from {
        translate: 0;
    }

    to {
        translate: -100%;
    }
}




/*********** FOOTER ***********/
.foot {
    background: #202d3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.4);
}

.foot_0 {
    color: rgb(255, 241, 153);
    font-size: 1rem;
    margin-bottom: 20px;
}

.foot_1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    align-items: center;
}

.foot_1>a {
    color: rgba(240, 248, 255, 0.32);
    font-size: 0.9rem;
}

.foot_3 {
    display: flex;
    align-items: center;
    gap: 10px;
}


.foot_3,
.foot_4 {
    font-size: 0.8rem;
    text-align: center;
}

abbr {
    font-style: italic;
}

/************** RESPONSIVE **************/
@media (max-width: 1000px) {
    header h3 {
        font-size: 1rem;
    }

    .block_moi,
    .block_projets {
        flex-direction: column;
        gap: 20px;
    }

    .text_me,
    .text_projets {
        width: 90%;
    }

    .rafinart,
    .urweb,
    .comics {
        max-width: 500px;
    }

    .skills {
        flex-direction: column;
    }

    .tp {
        font-size: 0.9rem;
    }

    .tm {
        font-size: 1.8rem;
    }

    .tg {
        font-size: 2.3rem;
    }

    .card {
        margin-left: 120px;
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 600px) {

    .rafinart,
    .urweb,
    .comics {
        max-width: 300px;
        height: 150px;
    }

    .rafinart:hover,
    .urweb:hover,
    .comics:hover {
        height: 250px;
    }

    .text_me p,
    .text_projets p {
        font-size: 0.9rem;
    }

    .tp {
        font-size: 0.7rem;
    }

    .tm {
        font-size: 1.2rem;
    }

    .tg {
        font-size: 1.5rem;
    }

    .card {
        margin-left: 80px;
        width: 80px;
        height: 80px;
    }
}